package top.topsmart.api.bycenter.util;

import com.alibaba.fastjson.JSONObject;

public class Result {
    private Integer code;
    private String msg;
    private JSONObject data;

    public Result(Integer code, String msg, JSONObject data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Result(Integer code, JSONObject data) {
        this.code = code;
        this.data = data;
    }

    public Result(JSONObject data) {
        this.data = data;
    }

    public Result(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public JSONObject getData() {
        return data;
    }

    public void setData(JSONObject data) {
        this.data = data;
    }
}
